package cn.tedu.egmvc2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AddressController {
    @RequestMapping("/address/add")
    @ResponseBody
    public String addAddress(String receiver,String address,String email,String mobile,String tag){
        System.out.println("...");
        return "添加成功";
    }

    @RequestMapping("/address/list")
    @ResponseBody
    public String listAddress(){
        return "查询成功";
    }

    @RequestMapping("/address/delete")
    @ResponseBody
    public String deleteAddress(Integer id){
        System.out.println("...");
        return "删除成功";
    }
    @RequestMapping("/address/update")
    @ResponseBody
    public String updateAddress(Integer id,String receiver,String address,String email,String mobile,String tag){
        System.out.println("...");
        return "修改成功";
    }
}
